import request from '@/utils/request'
export default {

    //生成统计数据
    createData(day) {
        return request({
            url: '/staservice/sta/registerCount/'+day,
            method: 'get',
          })
    },
    //获取统计数据进行显示
    getDataSta(searchObj) {
        return request({
            url: `/staservice/sta/shouData/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
            method: 'get',
          })
    },

    getAllDataSta(searchObjAll) {
        return request({
            url: `/staservice/sta/showAllData/${searchObjAll.begin}/${searchObjAll.end}`,
            method: 'get',
          })
    },

    getAllData() {
        return request({
            url: `/staservice/sta/getAllData`,
            method: 'get',
        })
    },
    
}